package kg.aibek.projecteuler.p10;

import java.math.BigInteger;

public class Problem25 {
	public void solve() {
		BigInteger bi1 = BigInteger.ONE;
		BigInteger bi2 = BigInteger.ONE;

		int term = 2;
		while (bi2.toString().length() < 1000) {
			BigInteger temp = bi2;
			bi2 = bi2.add(bi1);
			bi1 = temp;
			term++;
		}
		System.out.println(term);
	}

	public static void main(String[] args) {
		Problem25 p = new Problem25();
		p.solve();
	}
}
